using System;

namespace WorldOfMUDra
{
    public class Knife : XmlLoadedItem , IWeapon
    {
        readonly int attack_rating;
        int AttackRating
        {
            get { return attack_rating; }
        }

        /// <summary>
        /// This should be the only constructor used for the main game. Any other constructors are for beta test only.
        /// The file should be an XML file and will be parsed for all the info used in the instance of the class.
        /// </summary>
        /// <param name="filename">The name of the XML file to be parsed.</param>
        public Knife(string filename) 
            : base(filename)
        {
            if (Tags.ContainsKey("attackrating")) { attack_rating = Int32.Parse(Tags["attackrating"]); }
        }

        public override void OnFirstPickUp(Player p)
        {

        }

        public override void OnLook(Player p)
        {

        }

        public override void OnPickUp(Player p)
        {

        }
    }
}
